<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::MeshWithDataPackages&lt; BaseMeshType, DataPackageType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_mesh_with_data_packages-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::MeshWithDataPackages&lt; BaseMeshType, DataPackageType &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Abstract class fpr mesh with data packages.  
 <a href="class_s_p_h_1_1_mesh_with_data_packages.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="base__mesh_8h_source.html">base_mesh.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa19c73c84e4a98e96a263fc4093601b3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa19c73c84e4a98e96a263fc4093601b3">allocateMeshDataMatrix</a> () override</td></tr>
<tr class="separator:aa19c73c84e4a98e96a263fc4093601b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eaec49683e3f760b9e85d47d40d5dac"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a5eaec49683e3f760b9e85d47d40d5dac">deleteMeshDataMatrix</a> () override</td></tr>
<tr class="separator:a5eaec49683e3f760b9e85d47d40d5dac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ccc3838a7aaf62f75ee5e191df482f6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a5ccc3838a7aaf62f75ee5e191df482f6">MeshWithDataPackages</a> (Vecd lower_bound, Vecd upper_bound, Real grid_spacing, <a class="el" href="classsize__t.html">size_t</a> buffer_size=0)</td></tr>
<tr class="separator:a5ccc3838a7aaf62f75ee5e191df482f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10979ecebef177b628bed9bd78e309d7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10979ecebef177b628bed9bd78e309d7">MeshWithDataPackages</a> (Vecd mesh_lower_bound, <a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells, Real cell_spacing)</td></tr>
<tr class="separator:a10979ecebef177b628bed9bd78e309d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedc4e78703d9632d146b2e1552e611bf"><td class="memTemplParams" colspan="2">template&lt;class DataType , class PackageDataType , DataType PackageDataType::* MemPtr&gt; </td></tr>
<tr class="memitem:aedc4e78703d9632d146b2e1552e611bf"><td class="memTemplItemLeft" align="right" valign="top">DataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#aedc4e78703d9632d146b2e1552e611bf">probeMesh</a> (Vecd &amp;position)</td></tr>
<tr class="memdesc:aedc4e78703d9632d146b2e1552e611bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function probe a mesh value.  <a href="#aedc4e78703d9632d146b2e1552e611bf">More...</a><br /></td></tr>
<tr class="separator:aedc4e78703d9632d146b2e1552e611bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c39083503e4c2403e1a261209e0ccc"><td class="memTemplParams" colspan="2">template&lt;class PackageDataType , Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </td></tr>
<tr class="memitem:af6c39083503e4c2403e1a261209e0ccc"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#af6c39083503e4c2403e1a261209e0ccc">computeGradient</a> (DataPackageType *inner_data_pkg, Real dt=0.0)</td></tr>
<tr class="memdesc:af6c39083503e4c2403e1a261209e0ccc"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function compute gradient using central difference scheme.  <a href="#af6c39083503e4c2403e1a261209e0ccc">More...</a><br /></td></tr>
<tr class="separator:af6c39083503e4c2403e1a261209e0ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9813f9cf4d8a729a2131501bd625fc76"><td class="memTemplParams" colspan="2">template&lt;class PackageDataType , Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </td></tr>
<tr class="memitem:a9813f9cf4d8a729a2131501bd625fc76"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a9813f9cf4d8a729a2131501bd625fc76">computeNormalizedGradient</a> (DataPackageType *inner_data_pkg, Real dt=0.0)</td></tr>
<tr class="memdesc:a9813f9cf4d8a729a2131501bd625fc76"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function compute normalized gradient using central difference scheme.  <a href="#a9813f9cf4d8a729a2131501bd625fc76">More...</a><br /></td></tr>
<tr class="separator:a9813f9cf4d8a729a2131501bd625fc76"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aadba35ad3ccab5a3fec7be11c781e0ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_mypool.html">Mypool</a>&lt; DataPackageType &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#aadba35ad3ccab5a3fec7be11c781e0ec">data_pkg_pool_</a></td></tr>
<tr class="separator:aadba35ad3ccab5a3fec7be11c781e0ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60367a8dbbe1def71a561f0ef1c8dca0"><td class="memItemLeft" align="right" valign="top">MeshDataMatrix&lt; DataPackageType * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a60367a8dbbe1def71a561f0ef1c8dca0">data_pkg_addrs_</a></td></tr>
<tr class="separator:a60367a8dbbe1def71a561f0ef1c8dca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa87f20b6d7a431a3afcc3cd6e2cf8a80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector</a>&lt; DataPackageType * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa87f20b6d7a431a3afcc3cd6e2cf8a80">inner_data_pkgs_</a></td></tr>
<tr class="separator:aa87f20b6d7a431a3afcc3cd6e2cf8a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a856867d209a70e80c5edd0f41713e2da"><td class="memItemLeft" align="right" valign="top">Vecd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a856867d209a70e80c5edd0f41713e2da">DataPositionFromGlobalIndex</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> global_data_index)</td></tr>
<tr class="separator:a856867d209a70e80c5edd0f41713e2da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d82b54276aab2546cec99449e81722"><td class="memTemplParams" colspan="2">template&lt;class PackageDataType &gt; </td></tr>
<tr class="memitem:a01d82b54276aab2546cec99449e81722"><td class="memTemplItemLeft" align="right" valign="top">PackageDataType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a01d82b54276aab2546cec99449e81722">DataValueFromGlobalIndex</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> global_data_index)</td></tr>
<tr class="memdesc:a01d82b54276aab2546cec99449e81722"><td class="mdescLeft">&#160;</td><td class="mdescRight">This function find the value of data from its global index.  <a href="#a01d82b54276aab2546cec99449e81722">More...</a><br /></td></tr>
<tr class="separator:a01d82b54276aab2546cec99449e81722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae366d0b1d288916e964a44d0d5345c49"><td class="memTemplParams" colspan="2">template&lt;class PackageDataType &gt; </td></tr>
<tr class="memitem:ae366d0b1d288916e964a44d0d5345c49"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#ae366d0b1d288916e964a44d0d5345c49">initializePackageAddressesInACell</a> (<a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index)</td></tr>
<tr class="separator:ae366d0b1d288916e964a44d0d5345c49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d5f98deeb88cf8352087587ded0b5da"><td class="memItemLeft" align="right" valign="top">pair&lt; <a class="el" href="classint.html">int</a>, <a class="el" href="classint.html">int</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a8d5f98deeb88cf8352087587ded0b5da">CellShiftAndDataIndex</a> (<a class="el" href="classsize__t.html">size_t</a> data_addrs_index_component)</td></tr>
<tr class="separator:a8d5f98deeb88cf8352087587ded0b5da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a7547ab2f45b7be609ec58b2b14d2736f"><td class="memItemLeft" align="right" valign="top">Real&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a7547ab2f45b7be609ec58b2b14d2736f">data_spacing_</a></td></tr>
<tr class="separator:a7547ab2f45b7be609ec58b2b14d2736f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a265af047a587520b5f34f96f55324007"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a265af047a587520b5f34f96f55324007">pkg_size_</a></td></tr>
<tr class="separator:a265af047a587520b5f34f96f55324007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af78347a7adfc754cd602345d6e8c9ecc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#af78347a7adfc754cd602345d6e8c9ecc">pkg_addrs_buffer_</a></td></tr>
<tr class="separator:af78347a7adfc754cd602345d6e8c9ecc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10eb97e684fb202435b59cce6835d732"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classint.html">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10eb97e684fb202435b59cce6835d732">pkg_addrs_size_</a></td></tr>
<tr class="separator:a10eb97e684fb202435b59cce6835d732"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f6fa59a743b293cfa423b0151338a38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#a2f6fa59a743b293cfa423b0151338a38">total_number_of_data_points_</a></td></tr>
<tr class="separator:a2f6fa59a743b293cfa423b0151338a38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa42ed9e23fbe9af25127ca9b0af47820"><td class="memItemLeft" align="right" valign="top">StdVec&lt; DataPackageType * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa42ed9e23fbe9af25127ca9b0af47820">singular_data_pkgs_addrs</a></td></tr>
<tr class="separator:aa42ed9e23fbe9af25127ca9b0af47820"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt;<br />
class SPH::MeshWithDataPackages&lt; BaseMeshType, DataPackageType &gt;</h3>

<p>Abstract class fpr mesh with data packages. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5ccc3838a7aaf62f75ee5e191df482f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5ccc3838a7aaf62f75ee5e191df482f6">&#9670;&nbsp;</a></span>MeshWithDataPackages() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::<a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a> </td>
          <td>(</td>
          <td class="paramtype">Vecd&#160;</td>
          <td class="paramname"><em>lower_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vecd&#160;</td>
          <td class="paramname"><em>upper_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>grid_spacing</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a>&#160;</td>
          <td class="paramname"><em>buffer_size</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor using domain information. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower_bound</td><td>Lower bound. </td></tr>
    <tr><td class="paramname">upper_bound</td><td>Upper bound. </td></tr>
    <tr><td class="paramname">grid_spacing</td><td>Grid spacing. </td></tr>
    <tr><td class="paramname">buffer_size</td><td>Buffer size. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a10979ecebef177b628bed9bd78e309d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10979ecebef177b628bed9bd78e309d7">&#9670;&nbsp;</a></span>MeshWithDataPackages() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::<a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a> </td>
          <td>(</td>
          <td class="paramtype">Vecd&#160;</td>
          <td class="paramname"><em>mesh_lower_bound</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td>
          <td class="paramname"><em>number_of_cells</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>cell_spacing</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor using mesh information directly. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">mesh_lower_bound</td><td>Lower bound. </td></tr>
    <tr><td class="paramname">number_of_cells</td><td>Upper bound. </td></tr>
    <tr><td class="paramname">cell_spacing</td><td>Cell spacing. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="aa19c73c84e4a98e96a263fc4093601b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa19c73c84e4a98e96a263fc4093601b3">&#9670;&nbsp;</a></span>allocateMeshDataMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType , class DataPackageType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::allocateMeshDataMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>allocate memories for addresses of data packages. </p>

</div>
</div>
<a id="a8d5f98deeb88cf8352087587ded0b5da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d5f98deeb88cf8352087587ded0b5da">&#9670;&nbsp;</a></span>CellShiftAndDataIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pair&lt;<a class="el" href="classint.html">int</a>, <a class="el" href="classint.html">int</a>&gt; <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::CellShiftAndDataIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classsize__t.html">size_t</a>&#160;</td>
          <td class="paramname"><em>data_addrs_index_component</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>find related cell index and data index for a data package address matrix </p>

</div>
</div>
<a id="af6c39083503e4c2403e1a261209e0ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6c39083503e4c2403e1a261209e0ccc">&#9670;&nbsp;</a></span>computeGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<div class="memtemplate">
template&lt;class PackageDataType , Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::computeGradient </td>
          <td>(</td>
          <td class="paramtype">DataPackageType *&#160;</td>
          <td class="paramname"><em>inner_data_pkg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This function compute gradient using central difference scheme. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inner_data_pkg(DataPackageType)</td><td>input data package. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dt(Real)</td><td>Not used for spatial gradient. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9813f9cf4d8a729a2131501bd625fc76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9813f9cf4d8a729a2131501bd625fc76">&#9670;&nbsp;</a></span>computeNormalizedGradient()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<div class="memtemplate">
template&lt;class PackageDataType , Real PackageDataType::* MemPtrSrc, Vecd PackageDataType::* MemPtrTrg&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::computeNormalizedGradient </td>
          <td>(</td>
          <td class="paramtype">DataPackageType *&#160;</td>
          <td class="paramname"><em>inner_data_pkg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Real&#160;</td>
          <td class="paramname"><em>dt</em> = <code>0.0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This function compute normalized gradient using central difference scheme. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inner_data_pkg(DataPackageType)</td><td>input data package. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dt(Real)</td><td>Not used for spatial gradient. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a856867d209a70e80c5edd0f41713e2da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a856867d209a70e80c5edd0f41713e2da">&#9670;&nbsp;</a></span>DataPositionFromGlobalIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Vecd <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::DataPositionFromGlobalIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td>
          <td class="paramname"><em>global_data_index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>find the position data from its global index </p>

</div>
</div>
<a id="a01d82b54276aab2546cec99449e81722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01d82b54276aab2546cec99449e81722">&#9670;&nbsp;</a></span>DataValueFromGlobalIndex()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType , class DataPackageType &gt; </div>
<div class="memtemplate">
template&lt;class PackageDataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">PackageDataType <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::DataValueFromGlobalIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td>
          <td class="paramname"><em>global_data_index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This function find the value of data from its global index. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">global_data_index(Vecu)</td><td>input global data index. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">PackageDataType</td><td>return the corresponding data package. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5eaec49683e3f760b9e85d47d40d5dac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5eaec49683e3f760b9e85d47d40d5dac">&#9670;&nbsp;</a></span>deleteMeshDataMatrix()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType , class DataPackageType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::deleteMeshDataMatrix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>delete memories for addresses of data packages. </p>

</div>
</div>
<a id="ae366d0b1d288916e964a44d0d5345c49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae366d0b1d288916e964a44d0d5345c49">&#9670;&nbsp;</a></span>initializePackageAddressesInACell()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType , class DataPackageType &gt; </div>
<div class="memtemplate">
template&lt;class PackageDataType &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::initializePackageAddressesInACell </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a>&#160;</td>
          <td class="paramname"><em>cell_index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>initialize the addresses in a data package for one variable. </p>

</div>
</div>
<a id="aedc4e78703d9632d146b2e1552e611bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedc4e78703d9632d146b2e1552e611bf">&#9670;&nbsp;</a></span>probeMesh()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType , class DataPackageType &gt; </div>
<div class="memtemplate">
template&lt;class DataType , class PackageDataType , DataType PackageDataType::* MemPtr&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">DataType <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::probeMesh </td>
          <td>(</td>
          <td class="paramtype">Vecd &amp;&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>This function probe a mesh value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">position(Vecd)</td><td>input position. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">(DataType)</td><td>return the probe data. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a60367a8dbbe1def71a561f0ef1c8dca0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60367a8dbbe1def71a561f0ef1c8dca0">&#9670;&nbsp;</a></span>data_pkg_addrs_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">MeshDataMatrix&lt;DataPackageType*&gt; <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::data_pkg_addrs_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Address of mesh date packages. </p>

</div>
</div>
<a id="aadba35ad3ccab5a3fec7be11c781e0ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadba35ad3ccab5a3fec7be11c781e0ec">&#9670;&nbsp;</a></span>data_pkg_pool_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_mypool.html">Mypool</a>&lt;DataPackageType&gt; <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::data_pkg_pool_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>memory pool for all packages in the mesh. </p>

</div>
</div>
<a id="a7547ab2f45b7be609ec58b2b14d2736f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7547ab2f45b7be609ec58b2b14d2736f">&#9670;&nbsp;</a></span>data_spacing_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Real <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::data_spacing_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>spacing of data in the data packages </p>

</div>
</div>
<a id="aa87f20b6d7a431a3afcc3cd6e2cf8a80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa87f20b6d7a431a3afcc3cd6e2cf8a80">&#9670;&nbsp;</a></span>inner_data_pkgs_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector</a>&lt;DataPackageType*&gt; <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::inner_data_pkgs_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Inner data packages which is able to carry out spatial operations. </p>

</div>
</div>
<a id="af78347a7adfc754cd602345d6e8c9ecc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af78347a7adfc754cd602345d6e8c9ecc">&#9670;&nbsp;</a></span>pkg_addrs_buffer_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classint.html">int</a> <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::pkg_addrs_buffer_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the size of address buffer, a value less than the package size. </p>

</div>
</div>
<a id="a10eb97e684fb202435b59cce6835d732"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10eb97e684fb202435b59cce6835d732">&#9670;&nbsp;</a></span>pkg_addrs_size_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classint.html">int</a> <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::pkg_addrs_size_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the size of address matrix in the data packages. </p>

</div>
</div>
<a id="a265af047a587520b5f34f96f55324007"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a265af047a587520b5f34f96f55324007">&#9670;&nbsp;</a></span>pkg_size_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classint.html">int</a> <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::pkg_size_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>the size of the data package matrix </p>

</div>
</div>
<a id="aa42ed9e23fbe9af25127ca9b0af47820"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa42ed9e23fbe9af25127ca9b0af47820">&#9670;&nbsp;</a></span>singular_data_pkgs_addrs</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">StdVec&lt;DataPackageType*&gt; <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::singular_data_pkgs_addrs</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>singular data packages. prodvied for far field condition. </p>

</div>
</div>
<a id="a2f6fa59a743b293cfa423b0151338a38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f6fa59a743b293cfa423b0151338a38">&#9670;&nbsp;</a></span>total_number_of_data_points_</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class BaseMeshType = BaseLevelSet, class DataPackageType = LevelSetDataPackage&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="el" href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a>&lt; <a class="el" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>, DataPackageType &gt;::total_number_of_data_points_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>total numer of data points in all the packages. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/meshes/<a class="el" href="base__mesh_8h_source.html">base_mesh.h</a></li>
<li>SPHINXsys/src/for_2D_build/meshes/<a class="el" href="for__2_d__build_2meshes_2base__mesh_8hpp_source.html">base_mesh.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
